package com.smartscreen.baseinfomanage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartscreen.baseinfomanage.entity.Term;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface TermMapper extends BaseMapper<Term> {
    
    @Select("SELECT * FROM term WHERE year_id = #{yearId} ORDER BY start_date")
    List<Term> selectByYearId(@Param("yearId") String yearId);
}